import request from '@/utils/request'
//考察类型列表
export function investigationList(data) {
    return request({
        url: '/stability-base/inspect-type/list',
        method: 'post',
        data
    })
}
//创建考察类型
export function createInvestigation(data) {
    return request({
        url: '/stability-base/inspect-type/create',
        method: 'post',
        data
    })
}
//编辑考察类型
export function updateInvestigation(data) {
    return request({
        url: '/stability-base/inspect-type/update',
        method: 'put',
        data
    })
}
//删除考察类型
export function deleteInvestigation(id) {
    return request({
        url: `/stability-base/inspect-type/delete?id=${id}`,
        method: 'delete',
    })
}
//取样点
export function sampleList(data) {
    return request({
        url: '/stability-base/sample-point/list',
        method: 'post',
        data
    })
}
//取样点
export function createSample(data) {
    return request({
        url: '/stability-base/sample-point/create',
        method: 'post',
        data
    })
}
//取样点
export function updateSample(data) {
    return request({
        url: '/stability-base/sample-point/update',
        method: 'put',
        data
    })
}
//取样点
export function deleteSample(id) {
    return request({
        url: `/stability-base/sample-point/delete?id=${id}`,
        method: 'delete',
    })
}
//考察类型下拉列表
export function selectInvestigationList() {
    return request({
        url: `/stability-base/inspect-type/down/list`,
        method: 'get',
    })
}
//放置条件下拉列表
export function selectInvestigationfList() {
    return request({
        url: `/stability-base/place-conditions-type/down/list`,
        method: 'get',
    })
}
//放置条件创建
export function createCondition(data) {
    return request({
        url: `/stability-base/place-conditions/create`,
        method: 'post',
        data
    })
}
//放置条件列表
export function conditionList(data) {
    return request({
        url: `/stability-base/place-conditions/list`,
        method: 'post',
        data
    })
}
//放置条件编辑
export function updateCondition(data) {
    return request({
        url: `/stability-base/place-conditions/update`,
        method: 'put',
        data
    })
}
//放置条件删除
export function deleteCondition(id) {
    return request({
        url: `/stability-base/place-conditions/delete?id=${id}`,
        method: 'delete'
    })
}
//放置条件类型创建
export function createTypeCondition(data) {
    return request({
        url: `/stability-base/place-conditions-type/create`,
        method: 'post',
        data
    })
}
//放置条件类型列表
export function conditionTypeList(data) {
    return request({
        url: `/stability-base/place-conditions-type/list`,
        method: 'post',
        data
    })
}
//放置条件类型编辑
export function updateTypeCondition(data) {
    return request({
        url: `/stability-base/place-conditions-type/update`,
        method: 'put',
        data
    })
}
//放置条件类型删除
export function deleteTypeCondition(id) {
    return request({
        url: `/stability-base/place-conditions-type/delete?id=${id}`,
        method: 'delete'
    })
}
//样品类型列表
export function sampleTypeList(data) {
    return request({
        url: `/stability-base/sampleType/list`,
        method: 'post',
        data
    })
}
//样品类型添加
export function sampleTypeCreate(data) {
    return request({
        url: `/stability-base/sampleType/create`,
        method: 'post',
        data
    })
}
//样品类型编辑
export function sampleTypeUpdate(id, data) {
    return request({
        url: `/stability-base/sampleType/update?id=${id}`,
        method: 'put',
        data
    })
}
//样品类型删除
export function sampleTypeDelete(id) {
    return request({
        url: `/stability-base/sampleType/delete?id=${id}`,
        method: 'delete'
    })
}
//考察项目列表
export function projectList(data) {
    return request({
        url: `/stability-base/inspectProject/list`,
        method: 'post',
        data
    })
}
//考察项目选择列表
export function projectSList() {
    return request({
        url: `/stability-base/inspectProject/downList`,
        method: 'get',
    })
}
//考察项目添加
export function projectCreate(data) {
    return request({
        url: `/stability-base/inspectProject/create`,
        method: 'post',
        data
    })
}
//考察项目编辑
export function projectUpdate(id, data) {
    return request({
        url: `/stability-base/inspectProject/update?id=${id}`,
        method: 'put',
        data
    })
}
//考察项目删除
export function projectDelete(id) {
    return request({
        url: `/stability-base/inspectProject/delete?id=${id}`,
        method: 'delete'
    })
}
//包装材料列表
export function materialList(data) {
    return request({
        url: `/stability-base/packing-material/list`,
        method: 'post',
        data
    })
}
//包装材料添加
export function materialCreate(data) {
    return request({
        url: `/stability-base/packing-material/create`,
        method: 'post',
        data
    })
}
//包装材料编辑
export function materialUpdate(id, data) {
    return request({
        url: `/stability-base/packing-material/update?id=${id}`,
        method: 'put',
        data
    })
}
//包装材料删除
export function materialDelete(id) {
    return request({
        url: `/stability-base/packing-material/delete?id=${id}`,
        method: 'delete'
    })
}
//封口形式列表
export function sealingList(data) {
    return request({
        url: `/stability-base/sealing/list`,
        method: 'post',
        data
    })
}
//封口形式添加
export function sealingCreate(data) {
    return request({
        url: `/stability-base/sealing/create`,
        method: 'post',
        data
    })
}
//封口形式编辑
export function sealingUpdate(id, data) {
    return request({
        url: `/stability-base/sealing/update?id=${id}`,
        method: 'put',
        data
    })
}
//封口形式删除
export function sealingDelete(id) {
    return request({
        url: `/stability-base/sealing/delete?id=${id}`,
        method: 'delete'
    })
}
//辅助措施列表
export function secondaryList(data) {
    return request({
        url: `/stability-base/secondary-measure/list`,
        method: 'post',
        data
    })
}
//辅助措施添加
export function secondaryCreate(data) {
    return request({
        url: `/stability-base/secondary-measure/create`,
        method: 'post',
        data
    })
}
//辅助措施编辑
export function secondaryUpdate(id, data) {
    return request({
        url: `/stability-base/secondary-measure/update?id=${id}`,
        method: 'put',
        data
    })
}
//辅助措施删除
export function secondaryDelete(id) {
    return request({
        url: `/stability-base/secondary-measure/delete?id=${id}`,
        method: 'delete'
    })
}